﻿<local:DocumentBase x:Class="WPFExcelReport.SETUPABON"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:ReflectionStudio.Components.UserControls;assembly=ReflectionStudio.Core"
                    xmlns:db="clr-namespace:ReflectionStudio.Core.Database;assembly=ReflectionStudio.Core"
                    xmlns:scm="clr-namespace:System.ComponentModel;assembly=WindowsBase" 
                    xmlns:dat="clr-namespace:System.Windows.Data;assembly=PresentationFramework"
                    xmlns:fd="clr-namespace:Labs.Filtering;assembly=ReflectionStudio.Core" 
                    xmlns:wep="clr-namespace:WPFExcelReport" 
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"
                    xmlns:tra="clr-namespace:WPFExcelReport.TranslationByMarkupExtension;assembly=ReflectionStudio.Core"
        Title="参数设定"   HorizontalAlignment="Stretch"
                    Loaded="Window_Loaded"
                    VerticalAlignment="Stretch"
                    Height="400"
                    >
    <local:DocumentBase.Resources>
        <ucd:Divideby10  x:Key="d10"/>
        <ucd:Divideby100  x:Key="d100"/>
        <ucd:Divideby1000  x:Key="d1000"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>
        <ucd:String2ColorConverter  x:Key="str2color"/>
        <db:INTEXDataSet  x:Key="iNTEXDataSet" />
        <CollectionViewSource   x:Key="vwDATADISPO" Source="{Binding Path=DATADISPO,Source={StaticResource iNTEXDataSet}}" />
    </local:DocumentBase.Resources>
    <Grid>
        <StackPanel>
            <TextBlock>更改参数后，请退出系统，重新使用。</TextBlock>
            <WrapPanel>
            <Button  Name="btnSaveDATADISPO" Click="btnSaveDATADISPO_Click" Width="20" Height="20">
            <Button.Background>
                        <ImageBrush  ImageSource="/IntexReportClient;component/Images/Save.png" />
            </Button.Background>
        </Button>
                <Button  Height="20"  Width="20" Margin="10,0,0,0" Name="btnQueryDATADISPO" Click="btnQueryDATADISPO_Click"
                         KeyboardNavigation.TabIndex="3" IsDefault="True">
                    <Button.Background>
                        <ImageBrush ImageSource="/IntexReportClient;component/Images/Search.png" />
                    </Button.Background>
                </Button>
            </WrapPanel>
            <DataGrid x:Uid="dlgDATADISPO" AutoGenerateColumns="False" EnableRowVirtualization="True" ItemsSource="{Binding Source={StaticResource ResourceKey=vwDATADISPO}}" 
                              HeadersVisibility="Column" x:Name="dlgDATADISPO" CanUserReorderColumns="True" CanUserResizeRows="True" CanUserSortColumns="True"  
                              RowDetailsVisibilityMode="VisibleWhenSelected" 
                              Width="Auto" Height="Auto" EnableColumnVirtualization="True" ScrollViewer.HorizontalScrollBarVisibility="Auto" ScrollViewer.VerticalScrollBarVisibility="Auto">
            <DataGrid.Columns>
                <DataGridTextColumn  Binding="{Binding Path=ID}" Header="ID" Width="Auto" />
                <DataGridTextColumn  Binding="{Binding Path=KAPKRS}" Header="_" Width="Auto" MinWidth="20" />
                <DataGridTextColumn Binding="{Binding Path=KAPNR}" Header="轴流程" Width="Auto" MinWidth="60" />
                <DataGridTextColumn Binding="{Binding Path=RAPKRS}" Header="_" Width="Auto" MinWidth="20" />
                <DataGridTextColumn  Binding="{Binding Path=RAPNR}" Header="织造流程" Width="Auto" MinWidth="60" />
                <DataGridTextColumn  Binding="{Binding Path=FAPKRS}" Header="_" Width="Auto" MinWidth="20" />
                <DataGridTextColumn  Binding="{Binding Path=FAPNR}" Header="后整流程" Width="Auto" MinWidth="60" />
                <DataGridTextColumn Binding="{Binding Path=FABFKRS}" Header="_" Width="Auto" MinWidth="20" />
                <DataGridTextColumn Binding="{Binding Path=FABFLFD}" Header="后整理单" Width="Auto" MinWidth="60" />
                <DataGridTextColumn Binding="{Binding Path=FABFPOS}" Header="_" Width="Auto" MinWidth="20" />
                <DataGridTextColumn Binding="{Binding Path=RABFKRS}" Header="_" Width="Auto" MinWidth="20" />
                <DataGridTextColumn Binding="{Binding Path=RABFLFD}" Header="织造单" Width="Auto" MinWidth="60" />
                <DataGridTextColumn Binding="{Binding Path=RABFPOS}" Header="_" Width="Auto" MinWidth="20" />
                <DataGridTextColumn Binding="{Binding Path=KABFKRS}" Header="_" Width="Auto" MinWidth="20" />
                <DataGridTextColumn Binding="{Binding Path=KABFLFD}" Header="准备单" Width="Auto" MinWidth="60" />
                <DataGridTextColumn Binding="{Binding Path=KABFPOS}" Header="_" Width="Auto" MinWidth="20" />
            </DataGrid.Columns>
        </DataGrid>
        </StackPanel>
    </Grid>
</local:DocumentBase>
